package com.hxzy.dto.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@ToString
public class SysUserDTO {
    /**
     * 用户名称
     */
    private String name;
    /**
     * 手机号码
     */
    private String phone;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    @ApiModelProperty(value = "开始时间",name = "startTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间",name = "endTime")
    private Date endTime;
}
